QuickOPC User's Guide and Reference
SecurityKeysInfo Constructor(String,Int64,Byte[],Double,Double)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.KeyManagement Namespace > SecurityKeysInfo Class > SecurityKeysInfo Constructor : SecurityKeysInfo Constructor(String,Int64,Byte[],Double,Double)
The URI string for the set of algorithms and key lengths used to secure the messages.
The security token Id of the first key in the array of keys.
An array of keys, ordered by the sequence if which they are used.
The time before the current key is expected to expire. In milliseconds.
The lifetime of a key. In milliseconds.
Initializes a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   ByVal securityPolicyUriString As String, _
   ByVal firstTokenId As Long, _
   ByVal keys() As Byte, _
   ByVal timeToNextKey As Double, _
   ByVal keyLifetime As Double _
)
'Usage
 
Dim securityPolicyUriString As String
Dim firstTokenId As Long
Dim keys() As Byte
Dim timeToNextKey As Double
Dim keyLifetime As Double
 
Dim instance As New SecurityKeysInfo(securityPolicyUriString, firstTokenId, keys, timeToNextKey, keyLifetime)

Parameters

securityPolicyUriString
The URI string for the set of algorithms and key lengths used to secure the messages.
firstTokenId
The security token Id of the first key in the array of keys.
keys
An array of keys, ordered by the sequence if which they are used.
timeToNextKey
The time before the current key is expected to expire. In milliseconds.
keyLifetime
The lifetime of a key. In milliseconds.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also